package com.project.controller;

import com.project.bean.SaleOrderBean;
import com.project.service.ISaleDetailService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("saleDetail")
@Api(tags = "销售订单详细")
public class SaleDetailController {
    @Autowired
    private ISaleDetailService detailService;

    @ApiOperation(value = "按ID查看销售详情")
    @GetMapping("findById")
    public SaleOrderBean findById(Integer id) {
        return detailService.findById(id);
    }
}
